package com.aop.controller;

import com.aop.annotation.Log;
import com.aop.annotation.MethodMeasureAnnotation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: zxl
 * @Data:2021/3/23
 */

@RestController
public class Hello {
    @MethodMeasureAnnotation
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

    @Log(description = "log test")
    @GetMapping("/test")
    public String test() {
        return "log test";
    }
}
